/*
 * @ author madman
 * @ use 月租记录
 */
var mongoose = require("mongoose");
var Schema = mongoose.Schema;
var shortid = require('shortid');
var rentalSchema = new Schema({
    _id: {
      type: String,
      'default': shortid.generate
    },
    // 号码
    msisdn: {
      type: String
    },
    // 月租成本
    cost: {
      type: String
    },
    //国家代码
    dialingPrefix: {
      type: String
    },
    // 区域
    countryName: {
        type: String
    },
     // 月租价格
    monthPrice: {
      type: String
    },
    // 月租利润
    profits: {
      type: String
    },
    // 扣费时间
    createdAt: {
      type: Date,
      default: Date.now
    }
});

module.exports = mongoose.model('j_rental', rentalSchema, 'j_rental');